package com.yuda.afterexamscore.service.impl;

import com.yuda.afterexamscore.domain.ThQuesScoreMapping;
import com.yuda.afterexamscore.mapper.ThQuesScoreMappingMapper;
import com.yuda.afterexamscore.service.IThQuesScoreMappingService;
import com.yuda.afterexamscore.vo.ThQuesScoreMappingVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author wyn
 * @date 2021-05-12
 */
@Service
public class ThQuesScoreMappingServiceImpl implements IThQuesScoreMappingService
{
    @Autowired
    private ThQuesScoreMappingMapper thQuesScoreMappingMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public ThQuesScoreMapping selectThQuesScoreMappingById(Long id)
    {
        return thQuesScoreMappingMapper.selectThQuesScoreMappingById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param thQuesScoreMapping 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ThQuesScoreMapping> selectThQuesScoreMappingList(ThQuesScoreMapping thQuesScoreMapping)
    {
        return thQuesScoreMappingMapper.selectThQuesScoreMappingList(thQuesScoreMapping);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param thQuesScoreMapping 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertThQuesScoreMapping(ThQuesScoreMapping thQuesScoreMapping)
    {
        return thQuesScoreMappingMapper.insertThQuesScoreMapping(thQuesScoreMapping);
    }

    @Override
    public int batchInsertThQuesScoreMapping(List<ThQuesScoreMapping> thQuesScoreMapping) {
        return thQuesScoreMappingMapper.batchInsertThQuesScoreMapping(thQuesScoreMapping);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param thQuesScoreMapping 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateThQuesScoreMapping(ThQuesScoreMapping thQuesScoreMapping)
    {
        return thQuesScoreMappingMapper.updateThQuesScoreMapping(thQuesScoreMapping);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteThQuesScoreMappingByIds(Long[] ids)
    {
        return thQuesScoreMappingMapper.deleteThQuesScoreMappingByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteThQuesScoreMappingById(Long id)
    {
        return thQuesScoreMappingMapper.deleteThQuesScoreMappingById(id);
    }

    @Override
    public List<ThQuesScoreMappingVo> queryTianKongList(ThQuesScoreMapping thQuesScoreMapping) {
        return thQuesScoreMappingMapper.queryTianKongList(thQuesScoreMapping);
    }

    @Override
    public int calculationScore(String subjectId) {
        return thQuesScoreMappingMapper.calculationScore(subjectId);
    }

    @Override
    public int calculationScoreOfZero() {
        return thQuesScoreMappingMapper.calculationScoreOfZero();
    }

    @Override
    public String processOfUpdateScore() {
        return thQuesScoreMappingMapper.processOfUpdateScore();
    }

    @Override
    public List<String> queryAllSubjectId() {
        return thQuesScoreMappingMapper.queryAllSubjectId();
    }
}
